Component({
  properties: {
    active: {
      type: Number,
      value: 0
    },
    list: {
      type: Array,
      value: []
    },
    title: {
      type: String,
      value: ''
    }
  },

  methods: {
    onChange(e) {
      const { index } = e.currentTarget.dataset;
      this.triggerEvent('change', index);
    },
  }
})